package com.example.databasepj.dto;

import java.time.LocalDateTime;

public class MessageData {
    // {
    //    "message_ID": 1,  // int
    //    "merchant_ID": 456, //int
    //    "message_type": 0,  // 消息类型 0: 预定确认 1: 订单状态更新
    //    "message_content": "您的预定已确认。", // string
    //    "time": "2024-06-02 10:00:00" // string
    //  },
    private int message_ID;
    private int merchant_ID;
    private int message_type;
    private String message_content;
    private java.time.LocalDateTime time;

    public MessageData(int message_ID, int merchant_ID, int message_type, String message_content, LocalDateTime time) {
        this.message_ID = message_ID;
        this.merchant_ID = merchant_ID;
        this.message_type = message_type;
        this.message_content = message_content;
        this.time = time;
    }

    public int getMessage_ID() {
        return message_ID;
    }

    public void setMessage_ID(int message_ID) {
        this.message_ID = message_ID;
    }

    public int getMerchant_ID() {
        return merchant_ID;
    }

    public void setMerchant_ID(int merchant_ID) {
        this.merchant_ID = merchant_ID;
    }

    public int getMessage_type() {
        return message_type;
    }

    public void setMessage_type(int message_type) {
        this.message_type = message_type;
    }

    public String getMessage_content() {
        return message_content;
    }

    public void setMessage_content(String message_content) {
        this.message_content = message_content;
    }

    public LocalDateTime getTime() {
        return time;
    }

    public void setTime(LocalDateTime time) {
        this.time = time;
    }
}
